import request from '@/utils/request'

// 查询空气质量列表
export function listAirQuality(query) {
  return request({
    url: '/environment/airQuality/list',
    method: 'get',
    params: query
  })
}

// 查询空气质量详细
export function getAirQuality(id) {
  return request({
    url: '/environment/airQuality/' + id,
    method: 'get'
  })
}

// 新增空气质量
export function addAirQuality(data) {
  return request({
    url: '/environment/airQuality',
    method: 'post',
    data: data
  })
}

// 修改空气质量
export function updateAirQuality(data) {
  return request({
    url: '/environment/airQuality/editById',
    method: 'post',
    data: data
  })
}

// 删除空气质量
export function delAirQuality(id) {
  return request({
    url: '/environment/airQuality/deleteByIds',
    method: 'post',
    data: {
      ids:id
    }
  })
}
